package com.ruoyi.SuveryInterface.Imp.mapper;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.SuveryInterface.Imp.domain.SysDegreeDetails;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-07-02
 */
public interface SysDegreeDetailsMapper {


    void insertBatch(@Param("degreeDetails") List<JSONObject> degreeDetails);


    @Select("select *,sys_degrees_id as sysDegreesId from sys_degree_details where sys_degrees_id = #{degreeId}")
    List<SysDegreeDetails> selectDegreesDetailsByDegreesId(Long degreeId);


    void insertBatchSysDegreeDetails(@Param("newDegreeDetailsList") List<SysDegreeDetails> newDegreeDetailsList);
}
